package com.baor.distribution.mapper;

import java.util.List;
import java.util.Map;

import com.baor.distribution.domain.*;
import org.apache.ibatis.annotations.Mapper;


/**
 * 分销Mapper接口
 *
 * @author ruoyi
 * @date 2025-07-18
 */
@Mapper
public interface TDistributorMapper
{
    //销售商列表
    List<DistributorVO> distributorList(Map<String, Object> params);
    //添加分销商
    /**
     * 新增分销
     *
     * @param tDistributor 分销
     * @return 结果
     */
    public int selectTDistributorList(TDistributor tDistributor);
    //冻结
    /**
     * 修改分销
     *
     *
     * @return 结果
     */
    public int updateDisStatus(int disId);
    //申请分销商列表
    List<ApplyDisVO> applyDislist(Map<String, Object> params);
    //申请分销商审核
    public int applyDisAudit(GoodsInfoVO tDistributor);
    //分销商等级下拉框
    List<DisGradeVO> disGrage();
    //更换上级推荐人
    public int upParent(GoodsInfoVO tDistributor);
    //分销设置
    public int disSetting(DisSettingVO disSettingVO);
    //分销等级列表
    List<TGradeVO> disGradeList(Map<String, Object> params);
    //添加分销等级
    public int addGrade(TGradeVO tGradeVO);
    //删除分销等级
    public int deGrade(TGradeVO tGradeVO);
    //代理商列表
    List<TAgentVO> agentList(Map<String, Object> params);
    //添加代理商
    public int addAgent(TAgentVO tAgentVO);
    //冻结代理商
    public int agentFreeze(int agentId);
    //编辑代理商
    public int editAgent(Map<String, Object> params);
    //代理设置
    public int agentSetting(Map<String, Object> params);
    //代理等级列表
    List<TProxyVO> proxyList(Map<String, Object> params);
    //编辑代理等级
    public int editProxy(Map<String, Object> params);
    //删除代理等级
    public int deProxy(Map<String, Object> params);
    //分析概况
    List<OverviewVO> overviewList();
    //佣金账户
    List<TTeamDividendVO> brokerList(Map<String, Object> params);
    //团队信息
    List<TeamVO> teamList(Map<String, Object> params);
    //分销商品
    List<GoodsVO> goodsList(Map<String, Object> params);
    //分销商品详情
    List<GoodsInfoVO> goodsListInfo(Map<String, Object> params);
//分销订单
    List<TRecharfgeVO> disOrderList(Map<String,Object> map);
    //分销商详情
    List<DistributorVO> disInfo(Map<String,Object> map);
    //分销商详情账户
    List<TBrokerVO> disInfoAcc(Map<String,Object> map);

    //分销订单详情
    List<TRecharfgeVO> disOrderInfo(Map<String,Object> map);







    /**
     * 查询分销
     * 
     * @param disId 分销主键
     * @return 分销
     */

    public GoodsInfoVO selectTDistributorByDisId(Long disId);

    /**
     * 查询分销列表
     * 
     * @param tDistributor 分销
     * @return 分销集合
     */
    public List<GoodsInfoVO> selectTDistributorList(GoodsInfoVO tDistributor);






}
